package com.situ.mymall.mapper;

import com.situ.mymall.pojo.entity.Product;
import com.situ.mymall.pojo.query.ProductQuery;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> list(ProductQuery productQuery);

    List<Product> listById(Integer id);

    Product selectById(Integer id);

    void update(Product product);

    void deleteById(Integer id);

    void deleteAll(Integer[] ids);

}